|
|
|
|
|
|
|
StrHolder = LoadResData(index, format) |
|
|
|
|
|
|
|
|
The required index parameter can be an integer value or a string that specifies the identifier (ID) of the data in the resource file. |
|
|
|
|
|
|
|
|
The format parameter is also required. The value or constant specifies the original format of the data being returned, as follows: |
|
|
|
|
|
|
|
|
The value can also be the string name of a user-defined resource. |
|
|
|
|
|
|
|
|
When you understand the commands that you can use, the code to use the resources in the resource file is quite easy. Listing 19.1 shows each control event routine needed to perform the necessary actions in the program. |
|
|
|
|
|
|
|
|
LISTING 19.1. RESOURCE.TXTCOMMAND BUTTON CLICK EVENT ROUTINES TO ACCESS THE RESOURCE FILE. |
|
|
|
 |
|
|
|
|
1: Private Sub cmdBitmap_Click()
2: picBitmap.Picture = LoadResPicture(6, vbResBitmap)
Display the Calendar Bitmap
3: End Sub
4:
|
|
|
|
|
|